﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using MethodWorx.CMS.Requests;
using MethodWorx.CMS.Content;
using System.Web.Mvc;
using MethodWorx.CMS.Services;
using MethodWorx.Core.Validation;
using MethodWorx.Core.DomainModel;
using MethodWorx.CMS.UI.Application;

namespace MethodWorx.CMS.UI.Models
{
    public class CreateWorkflowModel : WorkflowModel
    {

        public CreateWorkflowModel(ContentService content, WorkflowService workflow)
            : base(content, workflow)
        {
        }

        public override void Complete(IValidationProvider validation)
        {
            this.workflow.CreateWorkflow(this.Request, validation);
        }
    }
}